import request from '@/utils/request'

// 查询库存统计/admin/report/statistic
export function getStatistic() {
  return request({
    url: `/admin/report/statistic`,
    method: 'get'
  })
}
// 日报/admin/report/sendDailyEmail
export function getDailyEmail(data) {
  return request({
    url: `/admin/report/sendDailyEmail?datetime=${data.datetime}&email=${data.email}`,
    method: 'get'
  })
}
// 周报/admin/report/sendWeeklyEmail
export function getWeeklyEmail(data) {
  return request({
    url: `/admin/report/sendWeeklyEmail?beginDate=${data.beginDate}&endDate=${data.endDate}&email=${data.email}`,
    method: 'get'
  })
}